home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / bixdos.arc / PDOS310 < prev    next >
Text File  |  1986-11-24  |  10KB  |  220 lines

  1. TITLE: Patches for DOS 3.1
  2.  
  3.                         Patches for DOS 3.1 COMMAND.COM
  4.                         -------------------------------
  5. Patches 1 through 5 were obtained from the November 26, 185 issue of PC
  6. Magazine.  It appeared on User-to-User.  The contributor of these patches is
  7. Calvin R. Shields from Louisville, Kentucky.
  8. Patches 6 through 12 were obtained from CompuServe.  It was posted on August 9,
  9. 1985 by Jim Gainsley.
  10.  
  11. Patch 1:        Fix CLS command to clear 25 lines instead of 26 lines.  This
  12. --------        particularity allows DOS to erase the first line in video
  13.                 buffer which follows the currently active buffer.
  14.         debug COMMAND.COM
  15.         -e 263B
  16.         xxxx:263B 19.18
  17.         -w
  18.         -q
  19. Patch 2:        Fix the ECHO command so that ECHO followed by two spaces may
  20. --------        be used to display a blank line.  The practice of using ECHO
  21.                 to generate a blank line is not supported by MicroSoft.
  22.                 However, this is an undocumented feature available in earlier
  23.                 DOS versions but not in DOS 3.1, and even some authors like
  24.                 Peter Norton uses ECHO with two spaces to display a blank
  25.                 line.
  26.         debug COMMAND.COM
  27.         -e 3878
  28.         xxxx:3878 E8.83 20.F9 00.02 74.72
  29.         -w
  30.         -q
  31. Patch 3:        Fix ECHO command so that ECHO OFF is the default for executing
  32. --------        a BATch file.  The first byte is modified to set ECHO OFF for
  33.                 the processing of the AUTOEXEC.BAT file, and the second byte is
  34.                 modified to set ECHO OFF for all BATch files executed from the
  35.                 DOS prompt.
  36.         debug COMMAND.COM
  37.         -e 105B
  38.         xxxx:105B 03.02
  39.         -e 1967
  40.         xxxx:1967 01.00
  41.         -w
  42.         -q
  43.  
  44. Patch 4:        Replace the CHDIR command, since most people use CD anyway,
  45. --------        with a new command.  The new command DATER may be used to
  46.                 display the current date; unlike the DATE command, the DATER
  47.                 command will not prompt you to enter a value or a carriage
  48.                 return.
  49.         debug COMMAND.COM
  50.         -e 4D7D "DATER"
  51.         -e 4D82
  52.         xxxx:4D82 01.00 DB.2E 15.26
  53.         -w
  54.         -q
  55. Patch 5:        Replace the MKDIR command, since most people use MD anyway,
  56. --------        with a new command.  The new command TIMER may be used to
  57.                 display the current time; unlike the TIME command, the TIMER
  58.                 command will not prompt you to enter a value or a carriage
  59.                 return.
  60.         debug COMMAND.COM
  61.         -e 4D8C "TIMER"
  62.         -e 4D91
  63.         xxxx:4D91 01.00 1E.DF 16.1E
  64.         -w
  65.         -q
  66.  
  67. Patch 6:        Disables the printing of an automatic header for DOS FIND
  68. -------
  69.         ren FIND.EXE FIND.TMP
  70.         debug FIND.TMP
  71.         -e 0424
  72.         xxxx:0424 03.2C
  73.         -w
  74.         -q
  75.         ren FIND.TMP FIND.EXE
  76. Patch 7:        Permit more than 10 mismatches in DOS COMP
  77. --------
  78.         debug COMP.COM
  79.         -e 08E2
  80.         xxxx:08E2 0A.32         ;This patch allows for 50 mismatchs
  81.         -e 0BF8
  82.         xxxx:0BF8 31.35
  83.         -w
  84.         -q
  85. Patch 8:        Changing the size of the default environment.
  86. --------
  87.         debug COMMAND.COM
  88.         -e 0D11
  89.         xxxx:0D11 0A.1E         ;Set size to 544 bytes, use X'3C' for 1K bytes
  90.         -w
  91.         -q
  92. Patch 9:        Alter ANSI.SYS to disable the wait for retrace and the screen
  93. --------        blanking.
  94.         debug ANSI.SYS
  95.         -e 02E3
  96.         xxxx:02E3 74.90 FB.90
  97.         -e 02EA
  98.         xxxx:02EA EE.90
  99.         -w
  100.         -q
  101.  
  102. Patch 10:       Disables automatic creation of the .BAK files by EDLIN
  103. ---------
  104.         debug EDLIN.COM
  105.         -e 0CD5
  106.         xxxx:0CD5 56.41
  107.         -w
  108.         -q
  109. Patch 11:       Automatic installation of printer port for DOS PRINT
  110. ---------
  111.         debug PRINT.COM
  112.         -e 10CA 4 "LPT1"        ;Specify the printer port you want to use
  113.         -e 1788
  114.         xxxx:1788 E8.90 CB.90 02.90
  115.         -e 179A
  116.         xxxx:179A CD.90 21.90
  117.         -w
  118.         -q
  119.  
  120. Patch 12:       Changing the size of the Fixed Disk Cluster from 4K to 2K.
  121. ---------       This is a useful change if you keep many small files.
  122.                 Typically, you will free up about 10% of the disk space you
  123.                 are currently using.
  124.         NOTE: THE FOLLOWING PROCEDURE WILL DESTROY ALL DATA ON THE FIXED DISK!!!
  125.         You will need:
  126.                 1) IBM PC DOS 3.1 (will not work with 3.0)
  127.                 2) A disk utility such as DISK REPAIR (a part of the IBM
  128.                    PROFESSIONAL DEBUG FACILITY) or DEBUG
  129.         The following steps must be performed to convert the cluster size from
  130.         4K to 2K without lossing your data.
  131.         1) BACKUP everything on the  FIXED DISK using the DOS BACKUP command
  132.            which comes with your current version of DOS.
  133.         2) Perform a COLD boot using a DOS 3.1 system diskette in drive A, and
  134.            then run FDISK against the FIXED DISK to create and/or verify that a
  135.            DOS partition exist.
  136.         3) FORMAT the FIXED DISK using the DOS 3.1 FORMAT command.  DO NOT USE
  137.            ANY PARAMETERS ON THE FORMAT COMMAND EXCEPTTHE DRIVE IDENTIFIER.
  138.         4) Using your disk utility, select the boot sector and view it.  If you
  139.            are using the DOS DEBUG command, you will have to use the L command
  140.            to read the boot sector into memory, and the W command to write the
  141.            modified boot sector back to the FIXED DISK.  (See below for an
  142.            explaination of the pertinent information in this sector.)
  143.            At location AA (offset X'0D') is the value for the number of sectors
  144.            per cluster.  It should be X'08', this value should be changed to
  145.            X'04'.
  146.            At location BB (offset X'16') is the value for the number of sectors
  147.            per FAT.  It should be X'0800', this value should be changed to
  148.            X'1500'.
  149.            The results of the above two changes should appear as in CC and DD
  150.            below.
  151.            The FIXED DISK will be reformaated to match the new description in
  152.            the boot sector in step 6.
  153.  
  154.         A Layout of the Boot Sector
  155.         ---------------------------
  156.         An example of the first few bytes ion the boot bector of the FIXED DISK
  157.         displayed in HEX format both before and after applying the alterations
  158.         to convert from 4K clusters to 2K clusters.  (The bytes of interest are
  159.         located at boot sector offset X'0D' for sectors per cluster, and X'16'
  160.         for sectors per FAT.)
  161.         Original Boot Sector:
  162.                 EB299049 424D2020 332E3100 02080100 020002F3 50F80800
  163.                                              ^^                  ^^^^
  164.                                              AA                   BB
  165.         After applying changes:
  166.                 EB299049 424D2020 332E3100 02040100 020002F3 50F81500
  167.                                              ^^                  ^^^^
  168.                                              CC                   DD
  169.         Where the data elements directly above AA are sectors per cluster,
  170.         and above BB are sectors per FAT.
  171.         Modifing the Boot Secor with DEBUG
  172.         ----------------------------------
  173.         If you are using the DOS DEBUG command to alter the boot sector, you
  174.         will need to use the following instructions to accomplish the task.
  175.                 DEBUG
  176.                 -l 0 N 0 1
  177.                 -e 000D
  178.                 xxxx:000D 08.04
  179.                 -e 0016
  180.                 xxxx:0016 08.15
  181.                 -w 0 N 0 1
  182.                 -q
  183.         Where N = the FIXED DISK drive as follows:
  184.                 If fixed disk is drive  B  then  N = 1
  185.                            "            C   "    N = 2
  186.                            "            D   "    N = 3
  187.                            "            E   "    N = 4
  188.  
  189.         A more detailed explanation of these two changes
  190.         ------------------------------------------------
  191.         The number of sectors per cluster will be changed from 08 to 04, since
  192.         that's what this is all about.  The size of the FAT entries will be
  193.         changed from the 12 bit into the 16 bit format to allow DOS to address
  194.         all the additonal clusters created by this process, and the number of
  195.         sectors per FAT will be increases to accomodate both the larger size
  196.         FAT entries, and the increased number of FAT entries.
  197.         5) Exit the disk utility and perform a COLD boor with the same DOS 3.1
  198.            diskette.  You must perform the COLD boot since the boot sector is
  199.            read by DOS only once, at boot time, in order to build the BIOS
  200.            Parameter Block.  Having different information in the boot sector
  201.            than what's in the memory resident BPB will give unpredictable
  202.            results.
  203.         6) Reformat the FIXED DISK using the DOS 3.1 FORMAT command.  Now you
  204.            may use any paramters to format the disk any way you like.  The DOS
  205.            3.1 FORMAT command will not affest the changes you have made to the
  206.            boot sector.  (This is not so in DOS 3.0 which will rewrite the boot
  207.            sector.)
  208.         7) Now you may RESTORE you files using the DOS RESTORE command with the
  209.            /P option.  This option is required to force DOS to prompt you prior
  210.            to restoring a file.  There are three files which you do not want to
  211.            have restored back onto your FIXED DISK, they are IBMBIO.COM,
  212.            IBMDOS.COM, and COMMAND.COM.
  213.            If you do allow COMMAND.COM to be restored, make sure it is a DOS 3.1
  214.            version of COMMAND.COM.  Otherwise, you will have to copy in the
  215.            correct version of COMMAND.COM into you FIXED DISK.
  216.            If you allow either IBMBIO.COM or IBMDOS.COM to be restored, YOU WILL
  217.            NOT BE ABLE TO BOOT OFF YOUR FIXED DISK, EVEN IF THESE ARE DOS 3.1
  218.            SYSTEM FILES.  These files wull be placed into the wrong location by
  219.            DOS RESTORE, and you will have to reformat your FIXED DISK.
  220.